<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%String path = request.getContextPath();%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <c:set var="ctx" value="${pageContext.request.contextPath}"/>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>公司列表</title>
    <jsp:include page="../../import.jsp" flush="true"/>
</head>
<script type="text/javascript">
    var grid = null;
    var addGSData_s = {};
    var addSONData_s = {};
    $(function () {
        var _url = '<%=path%>/riskctrl/rskctrlmd/initList.do';
        $("#ligergrid1").ligerGrid({
            url: _url,
            method: 'get',
            columns: [
                {display: '公司名称', name: 'compNm', align: 'left', width: 150},
                {display: '公司编码', name: 'compCd', align: 'left', width: 150},
                {display: '请求协议', name: 'reqProtocol', align: 'left', width: 150},
                {display: '描述', name: 'sysDesc', align: 'left', width: 200},
                {display: '状态', name: 'isOpen', align: 'center', width: 100},
                {
                    display: '操作', width: 300, align: 'left',
                    render: function (rowdata, rowindex, value) {
                        var a = '<a class="sq-button-hasicon" href="javascript:add(' + "'" + rowdata.compCd + "'" + ',' + "'" + rowdata.compNm + "'" + ')"><i class="sqBtnIco_26"></i>增加接口</a>';
                        var b = '<a class="sq-button-hasicon" href="javascript:change(' + "'" + rowdata.id + "'" + ')"><i class="sqBtnIco_4"></i>修改</a>';
                        var c = '<a class="sq-button-hasicon" href="javascript:deleteRecord(' + "'" + rowdata.id + "'" + ')"><i class="sqBtnIco_7"></i>删除</a>';
                        var d = '<a class="sq-button-hasicon" href="javascript:modifySts(' + "'" + rowdata.id + "','1'" + ')"><i class="sqBtnIco_12"></i>启用</a>';
                        var e = '<a class="sq-button-hasicon" href="javascript:modifySts(' + "'" + rowdata.id + "','0'" + ')"><i class="sqBtnIco_13"></i>禁用</a>';
                        var end = a + b + c;
                        if (rowdata.isValid == 1) {//已启用，按钮显示禁用
                            end += e;
                        } else {
                            end += d;
                        }
                        return end;
                    }
                }
            ],
            pageSize: 10,
            root: 'rows',
            record: 'total',
            hideLoadButton: true,
            width: '100%',
            height: '100%',
            heightDiff: -2,
            checkbox: false,
            rownumbers: true,
            frozen: false,
            allowUnSelectRow: true,
            alternatingRow: false,
            onBeforeShowData: function () {
                var grid = this;
                grid.collapsedRows = [];
            },

            detail: {
                height: 'auto',
                onShowDetail: showDetail_grid
            }
        });
        grid = liger.get("ligergrid1");
        grid.setHeight(100);
        $("#searchBar").ligerForm();

        $("#searchBtn").click(function (event) {
            var form = new liger.get("searchBar");
            var data = form.getData();
            for (name in data) {
                grid.setParm(name, data[name]);
            }
            grid.reload();
        });
        $("#addBtn").click(function (event) {
            $.ligerDialog.open({
                width: 400,
                //top: 100,
                title: '新增风控管理信息',
                target: $("#addGS_Html"),
                onHideDialog: function () {
                    clearLigerForm("addGS_form");
                }
            });
            var ligerForm = $("#addGS_form").ligerForm({validate: true});
        });
        $("#saveNewGS_Btn").click(function (event) {
            var form = liger.get("addGS_form");
            if (!form.valid()) {
                $.ligerDialog.SQalert({content: LogUtils.LOG_CMM_MUST_FIX_ITEM_INFO, SQ_type: "warning"});
                return false; //验证不通过，不执行以下代码
            }
            var data = form.getData();
            //默认启用
            data.isValid = "1";
            $.ligerDialog.hide();
            //以下应该有一段Ajax交互
            var wait_dialog;
            $.ajax({
                type: 'post',
                dataType: 'json',
                data: data,
                url: '<%=path%>/riskctrl/rskctrlmd/add.do',
                beforeSend: function () {
                    wait_dialog = $.ligerDialog.SQalert({content: LogUtils.LOG_CMM_DATA_LOADING, SQ_type: "waitting"});
                },
                success: function (msg) {
                    wait_dialog.close();
                    if (msg.success == 1) {
                        $.ligerDialog.SQalert({content: msg.info, SQ_type: "success"});
                        bankHeadQ = null;
                        $("#resetBtn").click();
                        $("#searchBtn").click();
                    } else {
                        $.ligerDialog.SQalert({content: msg.info, SQ_type: "error"});
                    }
                }
            });
        });
        $("#saveChangeGS_Btn").click(function (event) {
            var form = liger.get("changeGS_form");
            if (!form.valid()) {
                $.ligerDialog.SQalert({content: LogUtils.LOG_CMM_MUST_FIX_ITEM_INFO, SQ_type: "warning"});
                return false; //验证不通过，不执行以下代码
            }
            var data = form.getData();
            $.ligerDialog.hide();
            //以下应该有一段Ajax交互
            var wait_dialog;
            $.ajax({
                type: 'post',
                dataType: 'json',
                data: data,
                url: '<%=path%>/riskctrl/rskctrlmd/modify.do?id=' + addGSData_s.id,
                beforeSend: function () {
                    wait_dialog = $.ligerDialog.SQalert({content: LogUtils.LOG_CMM_DATA_LOADING, SQ_type: "waitting"});
                },
                success: function (msg) {
                    wait_dialog.close();
                    if (msg.success == 1) {
                        $.ligerDialog.SQalert({content: msg.info, SQ_type: "success"});
                        bankHeadQ = null;
                        $("#resetBtn").click();
//                        $("#searchBtn").click();
                        grid.reload($('.pcontrol input', grid.toolbar).val());
                    } else {
                        $.ligerDialog.SQalert({content: msg.info, SQ_type: "error"});
                    }


                }
            });
        });
        $("#saveNewSON_Btn").click(function (event) {
            var form = liger.get("addSON_form");
            if (!form.valid()) {
                $.ligerDialog.SQalert({content: LogUtils.LOG_CMM_MUST_FIX_ITEM_INFO, SQ_type: "warning"});
                return false; //验证不通过，不执行以下代码
            }
            var data = form.getData();
            data.compCd = addSONData_s.compCd;
            //默认启用
            data.isValid = "1";
            $.ligerDialog.hide();
            //以下应该有一段Ajax交互
            var wait_dialog;
            $.ajax({
                type: 'post',
                dataType: 'json',
                data: data,
                url: '<%=path%>/riskctrl/rskctrlmd/addSON.do',
                beforeSend: function () {
                    wait_dialog = $.ligerDialog.SQalert({content: LogUtils.LOG_CMM_DATA_LOADING, SQ_type: "waitting"});
                },
                success: function (msg) {
                    wait_dialog.close();
                    if (msg.success == 1) {
                        $.ligerDialog.SQalert({content: msg.info, SQ_type: "success"});
                        bankHeadQ = null;
                        detailGrid.reload();
                    } else {
                        $.ligerDialog.SQalert({content: msg.info, SQ_type: "error"});
                    }
                }
            });
        });
        $("#saveChangeSON_Btn").click(function (event) {
            var form = liger.get("changeSON_form");
            if (!form.valid()) {
                $.ligerDialog.SQalert({content: LogUtils.LOG_CMM_MUST_FIX_ITEM_INFO, SQ_type: "warning"});
                return false; //验证不通过，不执行以下代码
            }
            var data = form.getData();
            data.compCd = addSONData_s.compCd;
            $.ligerDialog.hide();
            //以下应该有一段Ajax交互
            var wait_dialog;
            $.ajax({
                type: 'post',
                dataType: 'json',
                data: data,
                url: '<%=path%>/riskctrl/rskctrlmd/modifySON.do?id=' + addSONData_s.id,
                beforeSend: function () {
                    wait_dialog = $.ligerDialog.SQalert({content: LogUtils.LOG_CMM_DATA_LOADING, SQ_type: "waitting"});
                },
                success: function (msg) {
                    wait_dialog.close();
                    if (msg.success == 1) {
                        $.ligerDialog.SQalert({content: msg.info, SQ_type: "success"});
                        bankHeadQ = null;
                        detailGrid.reload();
                    } else {
                        $.ligerDialog.SQalert({content: msg.info, SQ_type: "error"});
                    }
                }
            });
        });
        $("#clearBtn").click(function (event) {
            $("#resetBtn").click();  //重置 input-text
        });
    });
    function add(compCd, compNm) {
        addSONData_s.compCd = compCd;
        $.ligerDialog.open({
            width: 400,
            //top: 100,
            title: compNm + '新增接口信息',
            target: $("#addSON_Html"),
            onHideDialog: function () {
                clearLigerForm("addSON_form");
            }
        });
        var ligerForm = $("#addSON_form").ligerForm({validate: true});
    }
    //启用或禁用
    function modifySts(_id, isValid) {
        if (!_id)return;
        var url = '<%=path%>/riskctrl/rskctrlmd/modifySts.do?id=' + _id +'&isValid=' + isValid;
        var wait_dialog;
        $.ajax({
            type: 'get',
            dataType: 'json',
            url: url,
            beforeSend: function () {
                wait_dialog = top.$.ligerDialog.SQalert({content: LogUtils.LOG_CMM_DATA_LOADING, SQ_type: "waitting"});
            },
            success: function (msg) {
                wait_dialog.close();
                if (msg.success == 1) {
                    top.$.ligerDialog.SQalert({content: msg.info, SQ_type: "success"});
                    grid.reload($('.pcontrol input', grid.toolbar).val());
                } else {
                    top.$.ligerDialog.SQalert({content: msg.info, SQ_type: "error"});
                }
            }
        });
    }
    //启用或禁用
    function modifySONSts(_id, isValid) {
        if (!_id)return;
        var url = '<%=path%>/riskctrl/rskctrlmd/modifySONSts.do?id=' + _id +'&isValid=' + isValid;
        var wait_dialog;
        $.ajax({
            type: 'get',
            dataType: 'json',
            url: url,
            beforeSend: function () {
                wait_dialog = top.$.ligerDialog.SQalert({content: LogUtils.LOG_CMM_DATA_LOADING, SQ_type: "waitting"});
            },
            success: function (msg) {
                wait_dialog.close();
                if (msg.success == 1) {
                    top.$.ligerDialog.SQalert({content: msg.info, SQ_type: "success"});
                    detailGrid.reload();
                } else {
                    top.$.ligerDialog.SQalert({content: msg.info, SQ_type: "error"});
                }
            }
        });
    }
    //修改数据
    function change(_id) {
        $.ajax({
            type: 'get',
            dataType: 'json',
            url: '<%=path%>/riskctrl/rskctrlmd/getById.do?id=' + _id,
            success: function (msg) {
                if (msg.success == 1) {
                    //$.ligerDialog.success(msg.info)
                    openChange();//弹出修改框
                    setData(msg.data);//设置数据
                } else {
                    $.ligerDialog.SQalert({content: msg.info, SQ_type: "error"});
                }
            }
        });
    }
    function openChange() {
        $.ligerDialog.open({
            width: 400,
            top: 100,
            title: '修改风控管理信息',
            target: $("#changeGS_Html"),
            onHideDialog: function () {
                clearLigerForm("changeGS_form");
            }
        });

        $("#changeGS_form").ligerForm({validate: true});
    }
    //设置页面数据
    function setData(data) {
        var form = new liger.get("changeGS_form");
        addGSData_s.id = data.id;
        form.setData({
            compNm: data.compNm,
            compCd: data.compCd,
            reqProtocol: data.reqProtocol,
            isValid: data.isValid
        });
    }
    //修改子表数据
    function changeSON(_id) {
        $.ajax({
            type: 'get',
            dataType: 'json',
            url: '<%=path%>/riskctrl/rskctrlmd/getSONById.do?id=' + _id,
            success: function (msg) {
                if (msg.success == 1) {
                    //$.ligerDialog.success(msg.info)
                    openChangeSON();//弹出修改框
                    setSONData(msg.data);//设置数据
                    addSONData_s.compCd = msg.data.compCd;
                } else {
                    $.ligerDialog.SQalert({content: msg.info, SQ_type: "error"});
                }
            }
        });
    }
    //设置子表页面数据
    function setSONData(data) {
        var form = new liger.get("changeSON_form");
        addSONData_s.id = data.id;
        form.setData({
            infNm: data.infNm,
            compCd: data.compCd,
            reqMtdCd: data.reqMtdCd,
            dataFm: data.dataFm,
            codeFm: data.codeFm,
            reqUrl: data.reqUrl,
            accountNm: data.accountNm,
            accountPwd: data.accountPwd,
            accountPwd2: data.accountPwd2,
            connectTimeout: data.connectTimeout,
            socketTimeout: data.socketTimeout,
            isValid: data.isValid,
            infDesc: data.infDesc
        });
    }
    function openChangeSON() {
        $.ligerDialog.open({
            width: 400,
            top: 100,
            title: '修改公司接口信息',
            target: $("#changeSON_Html"),
            onHideDialog: function () {
                clearLigerForm("changeSON_form");
            }
        });

        $("#changeSON_form").ligerForm({validate: true});
    }
    //删除数据
    function deleteRecord(_id) {
        if (!_id)return;
        $.ligerDialog.confirm('确定删除吗?', function (flag) {
            if (flag == false)return;
            var wait_dialog;
            $.ajax({
                type: 'get',
                dataType: 'json',
                url: '<%=path%>/riskctrl/rskctrlmd/removeById.do?id=' + _id,
                beforeSend: function () {
                    wait_dialog = $.ligerDialog.SQalert({content: LogUtils.LOG_CMM_DATA_LOADING, SQ_type: "waitting"});
                },
                success: function (msg) {
                    wait_dialog.close();
                    if (msg.success == 1) {
                        $.ligerDialog.SQalert({content: msg.info, SQ_type: "success"});
                        grid.reload($('.pcontrol input', grid.toolbar).val());
                    } else {
                        $.ligerDialog.SQalert({content: msg.info, SQ_type: "error"});
                    }
                }
            });
        });
    }
    //删除子表数据
    function deleteSONRecord(_id) {
        if (!_id)return;
        $.ligerDialog.confirm('确定删除吗?', function (flag) {
            if (flag == false)return;
            var wait_dialog;
            $.ajax({
                type: 'get',
                dataType: 'json',
                url: '<%=path%>/riskctrl/rskctrlmd/removeSONById.do?id=' + _id,
                beforeSend: function () {
                    wait_dialog = $.ligerDialog.SQalert({content: LogUtils.LOG_CMM_DATA_LOADING, SQ_type: "waitting"});
                },
                success: function (msg) {
                    wait_dialog.close();
                    if (msg.success == 1) {
                        $.ligerDialog.SQalert({content: msg.info, SQ_type: "success"});
                        detailGrid.reload();
                    } else {
                        $.ligerDialog.SQalert({content: msg.info, SQ_type: "error"});
                    }
                }
            });
        });
    }
    //格式化时间
    function renderDate(rowdata, index, value) {
        var dateStr = "";
        if (null != value) {
            var date = new Date(value);
            dateStr = DateUtils.formatDate(date, DateUtils.YYYY_MM_DD);
        }
        return dateStr;
    }
    //明细列表
    function showDetail_grid(row, detailPanel, callback) {
        var gridBox = document.createElement('div');
        $(gridBox).css('margin', 10);
        $(detailPanel).css({
            'padding': 10,
            'box-sizing': 'border-box'
        }).append(gridBox);
        detailGrid = $(gridBox).ligerGrid({
            url: '<%=path%>/riskctrl/rskctrlmd/ctrDInitList.do?compCd=' + row.compCd,
            method: 'get',
            columns: [
                {display: '接口名称', name: 'infNm', width: 150, align: 'center'},
                {display: '接口编码', name: 'reqMtdCd', width: 150, align: 'center'},
                {display: '数据格式', name: 'dataFm', width: 100, align: 'center'},
                {display: '编码格式', name: 'codeFm', width: 100, align: 'center'},
                {display: '请求地址', name: 'reqUrl', width: 300, align: 'center'},
                {display: '账号', name: 'accountNm', width: 150, align: 'center'},
                {display: '密码', name: 'accountPwd', width: 150, align: 'center'},
                {display: '密码2', name: 'accountPwd2', width: 150, align: 'center'},
                {display: '获取连接超时时间（ms）', name: 'connectTimeout', width: 100, align: 'center'},
                {display: '获取数据超时时间（ms）', name: 'socketTimeout', width: 100, align: 'center'},
                {display: '描述', name: 'infDesc', width: 200, align: 'center'},
                {display: '状态', name: 'isOpen', width: 100, align: 'center'},
                {
                    display: '操作', width: 200, align: 'left',
                    render: function (rowdata, rowindex, value) {
                        var b = '<a class="sq-button-hasicon" href="javascript:changeSON(' + "'" + rowdata.id + "'" + ')"><i class="sqBtnIco_4"></i>修改</a>';
                        var c = '<a class="sq-button-hasicon" href="javascript:deleteSONRecord(' + "'" + rowdata.id + "'" + ')"><i class="sqBtnIco_7"></i>删除</a>';
                        var d = '<a class="sq-button-hasicon" href="javascript:modifySONSts(' + "'" + rowdata.id + "','1'" + ')"><i class="sqBtnIco_12"></i>启用</a>';
                        var e = '<a class="sq-button-hasicon" href="javascript:modifySONSts(' + "'" + rowdata.id + "','0'" + ')"><i class="sqBtnIco_13"></i>禁用</a>';
                        var end = b + c;
                        if (rowdata.isValid == 1) {//已启用，按钮显示禁用
                            end += e;
                        } else {
                            end += d;
                        }
                        return end;
                    }
                }
            ],
            root: 'rows',
            hideLoadButton: true,
            width: '100%',
            height: 'auto',
            isScroll: false,
            rownumbers: true,  //显示序号
            allowUnSelectRow: true,
            alternatingRow: false,
            onAfterShowData: callback,
            frozen: false,
            usePager: false
        });
    }
</script>

<body class="iframeBody">
<div class="Wrapper">
    <div class="searchArea">
        <form id="searchBar">
            <div class="fieldset1 clearFix">
                <div class="fieldBox">
                    <div class="label">公司名称</div>
                    <div class="field">
                        <input name="compNm" id="compNm3" type="text" class="ui-textbox" value="">
                    </div>
                </div>
                <div class="fieldBox">
                    <div class="label">公司编码</div>
                    <div class="field">
                        <input name="compCd" id="compCd3" type="text" class="ui-textbox" value="">
                    </div>
                </div>
                <%--<div class="fieldBox">--%>
                <%--<div class="label">审核状态</div>--%>
                <%--<div class="field">--%>
                <%--<select name="audStsCd" id="audStsCd" data-value=" ">--%>
                <%--<option value=" " seleted>请选择</option>--%>
                <%--<c:forEach items="${searchAudStsCdList }" var="kv">--%>
                <%--<option value="${kv.key }">${kv.value }</option>--%>
                <%--</c:forEach>--%>
                <%--</select>--%>
                <%--</div>--%>
                <%--</div>--%>
                <%--<div class="fieldBox">--%>
                <%--<div class="label">所属事业部</div>--%>
                <%--<div class="field">--%>
                <%--<select name="buOrgCd" id="buOrgCd" data-value=" ">--%>
                <%--<option value=" " seleted>请选择</option>--%>
                <%--<c:forEach items="${searchBuOrgList }" var="kv">--%>
                <%--<option value="${kv.key }">${kv.value }</option>--%>
                <%--</c:forEach>--%>
                <%--</select>--%>
                <%--</div>--%>
                <%--</div>--%>
                <div class="clearFix"></div>
                <div class="btnsBox formBtns notRight">
                    <span id="searchBtn" class="sq-button-round">查询</span>
                    <span id="clearBtn" class="sq-button-round">清空</span>
                    <span id="addBtn" class="sq-button-round">新增</span>

                    <input id="resetBtn" type="reset" value="重置" class="l-button l-button-reset Hide"/>
                </div>
        </form>
    </div>
</div>
<div id="ligergrid1" class="sq-grid"></div>

<!-- 增加风控管理信息弹出框 -->
<div id="addGS_Html" style="display:none">
    <form id="addGS_form">
        <div class="fieldset1 tabel_col tabel_col_1 clearFix">
            <div class="fieldBox col_100">
                <div class="label">公司名称</div>
                <div class="field">
                    <input name="compNm" id="compNm" type="text" class="ui-textbox" value="" validate="{required:true}">
                    <span class="requiredSymbol">*</span>
                </div>
            </div>
            <div class="fieldBox col_100">
                <div class="label">公司编码</div>
                <div class="field">
                    <input name="compCd" id="compCd" type="text" class="ui-textbox" value="" validate="{required:true}">
                    <span class="requiredSymbol">*</span>
                </div>
            </div>
            <div class="fieldBox col_100">
                <div class="label">请求协议</div>
                <div class="field">
                    <input name="reqProtocol" id="reqProtocol" type="text" class="ui-textbox" value="">
                </div>
            </div>
            <div class="fieldBox col_100">
                <div class="label">描述</div>
                <div class="field">
                    <input name="sysDesc" id="sysDesc" type="text" class="ui-textbox" value="">
                </div>
            </div>
            <div style="display: none;">
                <input name="isValid" id="isValid" type="text" class="ui-textbox" value="">
            </div>
        </div>
        <div class="btnsBox">
            <span id="saveNewGS_Btn" class="sq-button sq-button-hasicon"><i class="sqBtnIco_10"></i>保存</span>
        </div>
    </form>
</div>

<!-- 修改风控管理信息弹出框 -->
<div id="changeGS_Html" style="display:none">
    <form id="changeGS_form">
        <div class="fieldset1 tabel_col tabel_col_1 clearFix">
            <div class="fieldBox col_100">
                <div class="label">公司名称</div>
                <div class="field">
                    <input name="compNm" id="compNm2" type="text" class="ui-textbox" value=""
                           validate="{required:true}">
                    <span class="requiredSymbol">*</span>
                </div>
            </div>
            <div class="fieldBox col_100">
                <div class="label">公司编码</div>
                <div class="field">
                    <input name="compCd" id="compCd2" type="text" class="ui-textbox" value=""
                           validate="{required:true}">
                    <span class="requiredSymbol">*</span>
                </div>
            </div>
            <div class="fieldBox col_100">
                <div class="label">请求协议</div>
                <div class="field">
                    <input name="reqProtocol" id="reqProtocol2" type="text" class="ui-textbox" value="">
                </div>
            </div>
            <div class="fieldBox col_100">
                <div class="label">描述</div>
                <div class="field">
                    <input name="sysDesc" id="sysDesc2" type="text" class="ui-textbox" value="">
                </div>
            </div>
            <div style="display: none;">
                <input name="isValid" id="isValid2" type="text" class="ui-textbox" value="">
            </div>
        </div>
        <div class="btnsBox">
            <span id="saveChangeGS_Btn" class="sq-button sq-button-hasicon"><i class="sqBtnIco_10"></i>保存</span>
        </div>
    </form>
</div>

<!-- 增加公司接口弹出框 -->
<div id="addSON_Html" style="display:none">
    <form id="addSON_form">
        <div class="fieldset1 tabel_col tabel_col_1 clearFix">
            <div class="fieldBox col_100">
                <div class="label">接口名称</div>
                <div class="field">
                    <input name="infNm" id="infNm" type="text" class="ui-textbox" value="" validate="{required:true}">
                    <span class="requiredSymbol">*</span>
                </div>
            </div>
            <div class="fieldBox col_100">
                <div class="label">接口编码</div>
                <div class="field">
                    <input name="reqMtdCd" id="reqMtdCd" type="text" class="ui-textbox" value=""
                           validate="{required:true}">
                    <span class="requiredSymbol">*</span>
                </div>
            </div>
            <div class="fieldBox col_100">
                <div class="label">数据格式</div>
                <div class="field">
                    <input name="dataFm" id="dataFm" type="text" class="ui-textbox" value="">
                </div>
            </div>
            <div class="fieldBox col_100">
                <div class="label">编码格式</div>
                <div class="field">
                    <input name="codeFm" id="codeFm" type="text" class="ui-textbox" value="">
                </div>
            </div>
            <div class="fieldBox col_100">
                <div class="label">请求地址</div>
                <div class="field">
                    <input name="reqUrl" id="reqUrl" type="text" class="ui-textbox" value="">
                </div>
            </div>
            <div class="fieldBox col_100">
                <div class="label">账号</div>
                <div class="field">
                    <input name="accountNm" id="accountNm" type="text" class="ui-textbox" value=""
                           validate="{required:true}">
                    <span class="requiredSymbol">*</span>
                </div>
            </div>
            <div class="fieldBox col_100">
                <div class="label">密码</div>
                <div class="field">
                    <input name="accountPwd" id="accountPwd" type="text" class="ui-textbox" value=""
                           validate="{required:true}">
                    <span class="requiredSymbol">*</span>
                </div>
            </div>
            <div class="fieldBox col_100">
                <div class="label">密码2</div>
                <div class="field">
                    <input name="accountPwd2" id="accountPwd22" type="text" class="ui-textbox" value="">
                </div>
            </div>
            <div class="fieldBox col_100">
                <div class="label">连接超时时间</div>
                <div class="field">
                    <input name="connectTimeout" id="connectTimeout" type="text" class="ui-textbox" value=""
                           validate="{number:true}">
                </div>
            </div>
            <div class="fieldBox col_100">
                <div class="label">请求超时时间</div>
                <div class="field">
                    <input name="socketTimeout" id="socketTimeout" type="text" class="ui-textbox" value=""
                           validate="{number:true}">
                    <input id="resetBtn3" type="reset" value="重置" class="l-button l-button-reset Hide"/>
                </div>
            </div>
            <div class="fieldBox col_100">
                <div class="label">接口描述</div>
                <div class="field">
                    <input name="infDesc" id="infDesc" type="text" class="ui-textbox" value="">
                </div>
            </div>
            <div style="display: none;">
                <input name="isValid" id="isValid3" type="text" class="ui-textbox" value="">
            </div>
        </div>
        <div class="btnsBox">
            <span id="saveNewSON_Btn" class="sq-button sq-button-hasicon"><i class="sqBtnIco_10"></i>保存</span>
        </div>
    </form>
</div>

<!-- 修改公司接口弹出框 -->
<div id="changeSON_Html" style="display:none">
    <form id="changeSON_form">
        <div class="fieldset1 tabel_col tabel_col_1 clearFix">
            <div class="fieldBox col_100">
                <div class="label">接口名称</div>
                <div class="field">
                    <input name="infNm" id="infNm2" type="text" class="ui-textbox" value="" validate="{required:true}">
                    <span class="requiredSymbol">*</span>
                </div>
            </div>
            <div class="fieldBox col_100">
                <div class="label">接口编码</div>
                <div class="field">
                    <input name="reqMtdCd" id="reqMtdCd2" type="text" class="ui-textbox" value=""
                           validate="{required:true}">
                    <span class="requiredSymbol">*</span>
                </div>
            </div>
            <div class="fieldBox col_100">
                <div class="label">数据格式</div>
                <div class="field">
                    <input name="dataFm" id="dataFm2" type="text" class="ui-textbox" value="">
                </div>
            </div>
            <div class="fieldBox col_100">
                <div class="label">编码格式</div>
                <div class="field">
                    <input name="codeFm" id="codeFm2" type="text" class="ui-textbox" value="">
                </div>
            </div>
            <div class="fieldBox col_100">
                <div class="label">请求地址</div>
                <div class="field">
                    <input name="reqUrl" id="reqUrl2" type="text" class="ui-textbox" value="">
                </div>
            </div>
            <div class="fieldBox col_100">
                <div class="label">账号</div>
                <div class="field">
                    <input name="accountNm" id="accountNm2" type="text" class="ui-textbox" value=""
                           validate="{required:true}">
                    <span class="requiredSymbol">*</span>
                </div>
            </div>
            <div class="fieldBox col_100">
                <div class="label">密码</div>
                <div class="field">
                    <input name="accountPwd" id="accountPwd2" type="text" class="ui-textbox" value=""
                           validate="{required:true}">
                    <span class="requiredSymbol">*</span>
                </div>
            </div>
            <div class="fieldBox col_100">
                <div class="label">密码2</div>
                <div class="field">
                    <input name="accountPwd2" id="accountPwd222" type="text" class="ui-textbox" value="">
                </div>
            </div>
            <div class="fieldBox col_100">
                <div class="label">连接超时时间</div>
                <div class="field">
                    <input name="connectTimeout" id="connectTimeout2" type="text" class="ui-textbox" value=""
                           validate="{number:true}">
                </div>
            </div>
            <div class="fieldBox col_100">
                <div class="label">请求超时时间</div>
                <div class="field">
                    <input name="socketTimeout" id="socketTimeout2" type="text" class="ui-textbox" value=""
                           validate="{number:true}">
                </div>
            </div>
            <div class="fieldBox col_100">
                <div class="label">接口描述</div>
                <div class="field">
                    <input name="infDesc" id="infDesc2" type="text" class="ui-textbox" value="">
                </div>
            </div>
            <div style="display: none;">
                <input name="isValid" id="isValid4" type="text" class="ui-textbox" value="">
            </div>
        </div>
        <div class="btnsBox">
            <span id="saveChangeSON_Btn" class="sq-button sq-button-hasicon"><i class="sqBtnIco_10"></i>保存</span>
        </div>
    </form>
</div>

</body>
</html>